package com.finance.system.export;

import com.finance.framework.lang.BeanUtils;
import com.finance.system.bean.pojo.Supplier;
import com.finance.util.export.ExportBeanParse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: gly
 * @Date: Created in 10:54 2017/4/19
 */
public class SupplierParse extends ExportBeanParse<Supplier,SupplierImportTemplateBean > {
    private final Logger logger= LoggerFactory.getLogger(this.getClass());
    @Override
    protected SupplierImportTemplateBean parse(Supplier supplier) {
        SupplierImportTemplateBean bean=new SupplierImportTemplateBean();
        try {
            BeanUtils.copyProperties(bean,supplier);
        }catch (Exception e){
            logger.error("拷贝类失败",e);
        }
        return bean;
    }
}
